import java.util.Scanner;

class Test2{
    public void func(){
        System.out.println(1);
    }
}

public class Tset {
    public static void main(String[] args) {
        Test2 test2=new Test2(){
            @Override
            public void func() {
                System.out.println(2);
            }
        };
        test2.func();
    }
}
